export const recordList = [
    {
        "name": "哺乳",
        "key": "Breastfeeding",
		"icon":'icon-ziyuan25',
		backgroundColor:'#8be082',
		tabs:[
			{
				label:'喂奶次数',
				key:'index',
				unit:'次'
			},
			{
				label:'喂奶时长',
				key:'min',
				unit:'分钟'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'min',
				label:'时长',
			},
			{
				key:'breastName',
				label:'乳房',
			},
			{
				key:'remark',
				label:'备注',
			}
		],
		dev:true
    },
    {
        "name": "瓶喂母乳",
        "key": "MixedFeeding",
		"icon":'icon-ziyuan15',
		backgroundColor:'#f9cc77',
		tabs:[
			{
				label:'喂奶次数',
				key:'index',
				unit:'次'
			},
			{
				label:'喂奶量',
				key:'actualMilkAmount',
				unit:'毫升'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'奶量',
				unit:'毫升'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
		dev:true
    },
    {
        "name": "配方奶粉",
        "key": "FormulaMilk",
		"icon":'icon-ziyuan10',
		backgroundColor:'#8fb6fa',
		dev:true,
		tabs:[
			{
				label:'喂奶次数',
				key:'index',
				unit:'次'
			},
			{
				label:'喂奶量',
				key:'actualMilkAmount',
				unit:'毫升'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'brewMilkAmount',
				label:'冲泡奶量',
				// unit:'毫升'
			},
			{
				key:'remainingMilkAmount',
				label:'剩余奶量',
			},
			{
				key:'actualMilkAmount',
				label:'实际奶量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
		
    },
    {
        "name": "营养品",
        "key": "NutritionalSupplements",
		icon:'icon-ziyuan26',
		backgroundColor:'#fbcb77',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'equipmentName',
				label:'营养品名称',
				// unit:'毫升'
			},
			{
				key:'equipmentValue',
				label:'营养品剂量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
    {
        "name": "喝水",
        "key": "WaterIntake",
		icon:'icon-ziyuan13',
		dev:true,
		tabs:[
			{
				label:'喝水次数',
				key:'index',
				unit:'次'
			},
			{
				label:'喝水量',
				key:'actualMilkAmount',
				unit:'毫升'
			}
		],
		backgroundColor:'#63dcd9',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'水量',
				unit:'毫升'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "泵奶",
        "key": "Pumping",
		icon:'icon-ziyuan13',
		backgroundColor:'#fe8b8b',
		tabs:[
			{
				label:'吸奶次数',
				key:'index',
				unit:'次'
			},
			{
				label:'吸奶量',
				key:'min',
				unit:'毫升'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'min',
				label:'时长',
				unit:'毫升'
			},
			{
				key:'breastName',
				label:'乳房',
			},
			{
				key:'remark',
				label:'备注',
			}
		],
		dev:true
    },
    {
        "name": "换尿片",
        "key": "DiaperChange",
		icon:'icon-ziyuan14',
		backgroundColor:'#56b3ff',
		tabs:[
			{
				label:'换尿布次数',
				key:'index',
				unit:'次'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'remark',
				label:'备注',
			}
		],
		dev:true
    },
    {
        "name": "臭臭",
        "key": "Pooping",
		icon:'icon-ziyuan21',
		backgroundColor:'#efaa81',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'traitName',
				label:'性状',
			},
			{
				key:'colorName',
				label:'颜色',
			},
			{
				key:'stoolOutputName',
				label:'排便量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
    {
        "name": "嘘嘘",
        "key": "Urination",
		icon:'icon-ziyuan22',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#a7dc82',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'traitName',
				label:'性状',
			},
			{
				key:'colorName',
				label:'颜色',
			},
			{
				key:'stoolOutputName',
				label:'排尿量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
  //   {
  //       "name": "睡眠",
  //       "key": "Sleep",
		// dev:false
  //   },
    {
        "name": "辅食",
        "key": "SolidFood",
		icon:'icon-ziyuan8',
		backgroundColor:'#c3e160',
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		dev:true,
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'equipmentName',
				label:'辅食名称',
			},
			{
				key:'equipmentValue',
				label:'辅食剂量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
    {
        "name": "洗澡",
        "key": "Bathing",
		icon:'icon-ziyuan12',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#f1b3d7',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "身高",
        "key": "Height",
		icon:'icon-ziyuan20',
		dev:true,
		backgroundColor:'#7786ff',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'身高',
				unit:'厘米'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "体重",
        "key": "Weight",
		icon:'icon-ziyuan16',
		backgroundColor:'#7786ff',
		dev:true,
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'体重',
				unit:'千克'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "头围",
        "key": "HeadCircumference",
		icon:'icon-ziyuan4',
		backgroundColor:'#ff7bbb',
		dev:true,
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'头围',
				unit:'厘米'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "体温",
        "key": "BodyTemperature",
		dev:true,
		icon:'icon-ziyuan46',
		tabs:[
			{
				label:'测量次数',
				key:'index',
				unit:'次'
			},
			{
				label:'最高体温',
				key:'actualMilkAmount',
				unit:'摄氏度'
			}
		],
		backgroundColor:'#55d7b7',
		
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'体温',
				unit:'℃摄氏度'
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "不舒服",
        "key": "Discomfort",
		icon:'icon-ziyuan7',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#f87172',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'actualMilkAmount',
				label:'症状表现',
			},
			{
				key:'remark',
				label:'备注',
			}
		],
    },
    {
        "name": "用药",
        "key": "Medication",
		icon:'icon-ziyuan19',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#ca97ff',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'equipmentName',
				label:'药品名称',
			},
			{
				key:'equipmentValue',
				label:'药品剂量',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
    {
        "name": "疫苗",
        "key": "Vaccination",
		icon:'icon-ziyuan24',
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#7ba3ff',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'name',
				label:'接种疫苗名称',
			},
			{
				key:'remark',
				label:'备注',
			}
		]
    },
    {
        "name": "其他",
        "key": "Others",
		dev:true,
		tabs:[
			{
				label:'次数',
				key:'index',
				unit:'次'
			}
		],
		backgroundColor:'#d6d2c9',
		icon:'icon-ziyuan3',
		infoList:[
			{
				key:'time',
				label:'记录时间',
			},
			{
				key:'remark',
				label:'记录事项',
			}
		],
    }
]

function getList(list){
	return list.map((item,index)=>{
		return {
			text:item,
			value:index+1
		}
	})
}

export const dict = {
	breastList:getList(['左侧','右侧','双侧']),
	traitList:getList(['正常','稀便','水样','粘稠','较干','干硬']),
	colorList:getList(['绿色','黄色','褐色','灰色','黑色','红色']),
	stoolOutputList:getList(['大量','中量','少量']),
	traitList2:getList(['清亮','浑浊','泡沫']),
	colorList2:getList(['淡黄色','深黄色','透明无色','绿色','红色','白色','黑褐色']),
}

export const getName=(type,value)=>{
	if(!value){
		return ''
	}
	return dict[type].find(item=>item.value == value).text
}
